package com.csair.common.utils.bus;

public class Event<T> {
    private String action;
    private String message;
    private T data;

    public Event(String action) {
        this.action = action;
    }

    public Event(String action,String msg) {
        this.action = action;
        this.message = msg;
    }

    public Event(String action, String msg, T data) {
        this.action = action;
        this.message = msg;
        this.data = data;
    }

    public String getAction() {
        return action;
    }
    public void setCode(String action) {
        this.action = action;
    }

    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }
    public void setData(T data) {
        this.data = data;
    }
}

